package com.mgface.dubbo;

import com.mgface.dubbo.clientrpc.InvokeService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * @author wanyuxiang
 * @version 1.0
 * @project dubbo
 * @create 2018-08-14 22:23
 **/
@SpringBootApplication
public class DubboClientApplication {
    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(DubboClientApplication.class,args);
        InvokeService service = run.getBean(InvokeService.class);
        System.out.println(service.ihello);
        System.out.println(service.ihello.say("servicerpc"));
    }
}
